﻿using System;
using Fetches.Fetch.Factory.Persistence;

namespace FetchesDeploy.Distributed.UnitMonitor
{
    /// <summary>
    /// 被动通知的，主要用于Http或者gRPC之类的心跳方式通知
    /// </summary>
    public class PassiveUnitMonitor:IUnitMonitor
    {
        //TODO:PassiveUnitMonitor使用单例提供给HTTP调用

        public void NotifyOnline(UnitSchedules workshop)
        {

        }

        public void NotifyOffline(UnitSchedules workshop)
        {

        }

        public void Subscribe(Action<UnitSchedules> onlineAction, Action<long> offlineAction)
        {
            throw new NotImplementedException();
        }
    }
}
